<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>资源管理</title>
<script type="text/javascript" src="/j-tool/jquery.js"></script>
<link href='/public/css/admins.css' rel='stylesheet' type='text/css'/>
<body>
	<div class='bread'>资源管理->文章管理</div>
	<div class="manageBox">
		<div class="manageBox-div">
			<form action="" method="post" onsubmit="return false;" id="searchForm">
			<table class="searchBox">				
				<tr>
					<td>ID：</td><td><input type="text" name="id" class="input-text"/></td>
				</tr>
				<tr>
					<td>标题：</td><td><input type="text" name="title" class="input-text"/></td>
				</tr>
				<tr>
					<td>类型：</td>
					<td>
						<div id="sel" class="type-select">
							<div class="sel-box-value">
								<input type="hidden" name="cates" id="cates"/>
								<input type="text" name="sele-text" id="sele-text"/><span class="sel-box-btn">搜索</span>
							</div>
							<ul>
							<!--{foreach from=$catename item=val key=key}-->
								<li data="<!--{$val.cates}-->"><!--{$val.catename}--></li>
							<!--{/foreach}-->
							</ul>							
						</div>	
					</td>
				</tr>
				<tr>
					<td>时间：</td><td><input type="text" name="sTime" class="input-text"/>&nbsp;--&nbsp;<input type="text" name="eTime" class="input-text"/></td>
				</tr>
				<tr>
					<td><input type="hidden" name="action" value="manage_articles"/></td>
					<td><input type="submit" value="搜索" onclick="search(1);" class="butt"/></td>
					<td>
						<div class="cutpage">
							<ul id="ajaxpage">
								<li class="caheTag"><span onclick="search(1);">1</span></li>
								<li><span onclick="search(2);">2</span></li>
								<li><span onclick="search(3);">3</span></li>
								<li><span onclick="search(4);">4</span></li>
								<li><span onclick="search(5);">5</span></li>
								<li><span onclick="search(6);">6</span></li>
								<li><span onclick="search(7);">7</span></li>
								<li><span onclick="search(8);">8</span></li>
								<li><span onclick="search(9);">9</span></li>
								<li><span onclick="search(10);">10</span></li>
								<li><span onclick="search(11);">11</span></li>
							</ul>
							<ul id="doline">
								<li>&nbsp;<button onclick="updata();" class="butt">修改</button></li>
								<li>&nbsp;<button onclick="del();" class="butt">删除</button></li>
							</ul>
						</div>
					</td>
				</tr>				
			</table>
			</form>
		</div>
		<div class="content">
			<table id="sourceList">
				<tr><td>ID</td><td>标题</td><td>分类</td><td><a href="javascript:;" onclick="choseAll();">全选</a></td></tr>
				<!--{foreach from=$list item=val}-->
				<tr><td><!--{$val.id}--></td><td><a href="http://cblit.com/page.php?id=<!--{$val.id}-->" target="_blank"><!--{$val.title}--></a></td><td><!--{$val.catename}--></td><td><input type="checkbox" name="chose[<!--{$val.id}-->]" value="<!--{$val.id}-->"/></td></tr>
				<!--{/foreach}-->
			</table>			
			<div class="clear"></div>
		</div>
	</div>
</body>
<script type="text/javascript">
	var catename = ["<!--{$jscatename}-->"];
	function updata()
	{
		var val = $("input:checked").val();
		if(val)
		{
			location.href = "addarticles.php?id="+val;
		}
	}
</script>
<script type="text/javascript" src="/j-tool/admins.js"></script>
</html>